<?php

namespace app\admin\controller;

use think\Controller;

class Test extends Controller
{
    public function text(){
        $score = 0;
        switch (true){
            case($score < 60):
                echo '差';
                break;
            case($score >= 60 && $score < 80):
                echo '良';
                break;
            case($score >= 80):
                echo '优';
                break;
            default:
                echo 'error';
                break;
        }
    }
}